package com.xjgc.webservice.server.sap2msi;

import org.dom4j.DocumentException;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.BindingType;
import javax.xml.ws.soap.SOAPBinding;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.text.ParseException;

/**
 * SAP传回MSI
 * ESB(国网)
 */
@WebService(name = "SapToMsi", targetNamespace = "http://service.ws.xjgc.com/")
@BindingType(SOAPBinding.SOAP11HTTP_BINDING)
public interface SapToMsi {
    /**
     * Sap系统推数据到MSI Webserver的接口方法
     *
     * @param tName        传入数据表明
     * @param serialNumber 业务流水号
     * @param xmlData      xml报文数据
     * @param arg1         备用参数,暂时未启用
     * @return
     * @throws ClassNotFoundException
     * @throws NoSuchMethodException
     * @throws InstantiationException
     * @throws IllegalAccessException
     * @throws InvocationTargetException
     * @throws ParseException
     * @throws DocumentException
     * @throws SQLException
     */
    @WebMethod
    int pushData(String tName, String serialNumber, String xmlData, String arg1) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, ParseException, DocumentException, SQLException;

}
